package com.brillilab.starter.controller.pc.system;

import com.brillilab.common.entity.ResponseVo;
import com.brillilab.domain.enums.system.ClientVersionTypeEnum;
import com.brillilab.domain.po.system.ClientVersion;
import com.brillilab.service.core.system.IClientVersionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author wuzhiyu
 * @Title: SystemController
 * @ProjectName brill_lab
 * @Description: TODO
 * @date 2019/5/119:23
 */
@RestController("pcSystem")
@RequestMapping("/pc/system")
public class SystemController {
    @Resource
    private IClientVersionService clientVersionService;
    @GetMapping("/version")
    public ResponseVo getVersionInfo() {
        ClientVersion version = clientVersionService.getVersionInfo(ClientVersionTypeEnum.PC);
        return ResponseVo.success(version);
    }
}
